#ifndef _BBACTIVITY_H_
#define _BBACTIVITY_H_

#include "BBObject.h"
#include "BBContext.h"


class BBEventDispatcher;

/*
	BBActivity
*/
class BBActivity : public BBContext
{
public:
	static BBActivity* createActivity(int tag,CCNode* parent);
	static BBActivity* loadActivity(const char* activityXml);
public:
	BBActivity(void);
	virtual ~BBActivity(void);
	virtual void render();

	BB_CREATE_PROPERTY(bool,m_bIsActive,Active)
	BB_CREATE_PROPERTY(int,m_iActiveID,ActiveID)

	BBEventDispatcher* getDispatcher();

protected:
	BBEventDispatcher* m_pDispatcher;
};

#endif //_BBACTIVITY_H_